package com.ylr.blog.framework.controller.web;

import java.util.Map;

import com.ylr.base.common.tool.Result;
import com.ylr.blog.framework.service.CollectBlogService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import org.springframework.web.bind.annotation.*;

import com.ylr.blog.framework.entity.CollectBlogEntity;

import javax.annotation.Resource;



/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2023-05-25 23:12:13
 * className: CollectBlogWebController
 * version: 1.0
 * description:
 */
@RestController
@RequestMapping("/web/collect-blog")
public class CollectBlogWebController {

    private static final Logger log = LoggerFactory.getLogger(CollectBlogWebController.class);

    @Resource(name = "collectBlogService")
    private CollectBlogService collectBlogService;

    /**
     * 保存
     */
    @PostMapping("/save")
    public Result<Object> saveCollectBlog(@RequestBody CollectBlogEntity collectBlog) {
//        collectBlogService.save(collectBlog);

        return Result.success();
    }

    /**
     * 列表
     */
    @GetMapping("/page/list")
    public Result<Object> pageCollectBlogList(@RequestParam Map<String, Object> params) {
//        PageUtils page = collectBlogService.queryPage(params);

        return Result.success();
    }


    /**
     * 信息
     */
    @GetMapping("/get")
    public Result<Object> getCollectBlog(@RequestParam("id") Long id) {
//		CollectBlogEntity collectBlog = collectBlogService.getById(id);

        return Result.success();
    }

    /**
     * 修改
     */
    @PostMapping("/update")
    public Result<Object> updateCollectBlog(@RequestBody CollectBlogEntity collectBlog) {
//		collectBlogService.updateById(collectBlog);

        return Result.success();
    }

    /**
     * 删除
     */
    @DeleteMapping("/delete")
    public Result<Object> deleteCollectBlog(@RequestBody Long[] ids) {
//		collectBlogService.removeByIds(Arrays.asList(ids));

        return Result.success();
    }

}
